home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 008a / emslb221.zip / EXMAKETC < prev    next >
Text File  |  1991-10-13  |  5KB  |  149 lines

  1. #
  2. # EXAMPLE MAKEFILE FOR EMSTEST TESTER/EXAMPLE PROGRAM FOR EMSLIB
  3. # BORLAND COMPILERS
  4. # 10/13/91
  5. #
  6. #   This is an example makefile for Turbo/Borland C[++], to make the EMSTEST
  7. # tester/example program in any of the six supported memory models. It is
  8. # compatible with the MAKE utility provided with the compiler. As supplied,
  9. # it is set up for Borland C++. To reconfigure for earlier compilers, simply
  10. # change "bcc" to "tcc" on the line that begins with "CC", and add "-DNO_FFUNC"
  11. # to the line that begins "CFLAGS". This last is necessary because earlier
  12. # Borland compilers did not have the functions _fmemcmp() and _fmemset();
  13. # defining this symbol causes EMSTEST to use internal replacements for these
  14. # functions. Also, earlier compilers required an external assembler (MASM or
  15. # TASM) to support in-line assembly code. If you have the required assembler
  16. # and wish to use the in-line assembly code (it improves execution speed
  17. # significantly), you do not need to make any changes. However, compilation
  18. # will be faster if you add "-B" to the line that begins with "CFLAGS2". If
  19. # you do not have the required assembler or do not with to use the in-line
  20. # assembly code, simply remove "-DINLINE_ASM" from the line that begins
  21. # "CFLAGS".
  22. #
  23. #   Before using this makefile, make sure that the Borland MAKE utility and
  24. # the appropriate command-line compiler and linker are in your path. The three
  25. # source files (EMSTEST.C, EMSTEST2.C, and EMSTEST3.C), the header files
  26. # (EMSTEST.H and EMSLIB.H), the appropriate library or libraries (EMSLIB*.LIB),
  27. # and STACK.OBJ (if making the tiny-model example) should all be in the
  28. # current directory. TLINK is assumed to know where the standard objects
  29. # and libraries are (this is an installation/configuration option when
  30. # installing Borland compilers).
  31. #
  32. #   To use the makefile, type "make -fexmaketc target", where 'target' is
  33. # one or more of tiny, small, medium, compact, large, or huge, separated by
  34. # spaces. For example, "make -fexmaketc tiny" would make the tiny-model
  35. # example and "make -fexmaketc small large" would make the small- and large-
  36. # model examples. "make -fexmaketc" will make the test programs for all
  37. # memory models.
  38. #
  39.  
  40. CC    = bcc
  41. CFLAGS    = -c -d -DINLINE_ASM
  42. CFLAGS2    =
  43.  
  44. LINK    = tlink
  45. LF    = /x
  46.  
  47.  
  48.  
  49. all:        tiny small medium compact large huge
  50.  
  51. tiny:        emstesta emstestb emstestc
  52.  
  53. small:        semstest
  54.  
  55. medium:        memstest
  56.  
  57. compact:    cemstest
  58.  
  59. large:        lemstest
  60.  
  61. huge:        hemstest
  62.  
  63.  
  64. emstesta.obj:    emstest.c emstest.h
  65.     $(CC) $(CFLAGS) $(CFLAGS2) -mt -DTINYPASS1 -o$< emstest.c
  66.  
  67. emstestb.obj:    emstest.c emstest.h
  68.     $(CC) $(CFLAGS) $(CFLAGS2) -mt -DTINYPASS2 -o$< emstest.c
  69.  
  70. emstestc.obj:    emstest.c emstest.h
  71.     $(CC) $(CFLAGS) $(CFLAGS2) -mt -DTINYPASS3 -o$< emstest.c
  72.  
  73. semstest.obj:    emstest.c emstest.h
  74.     $(CC) $(CFLAGS) $(CFLAGS2) -ms -o$< emstest.c
  75.  
  76. memstest.obj:    emstest.c emstest.h
  77.     $(CC) $(CFLAGS) $(CFLAGS2) -mm -o$< emstest.c
  78.  
  79. cemstest.obj:    emstest.c emstest.h
  80.     $(CC) $(CFLAGS) $(CFLAGS2) -mc -o$< emstest.c
  81.  
  82. lemstest.obj:    emstest.c emstest.h
  83.     $(CC) $(CFLAGS) $(CFLAGS2) -ml -o$< emstest.c
  84.  
  85. hemstest.obj:    emstest.c emstest.h
  86.     $(CC) $(CFLAGS) $(CFLAGS2) -mh -o$< emstest.c
  87.  
  88. temstst2.obj:    emstest2.c emstest.h
  89.     $(CC) $(CFLAGS) -mt -o$< emstest2.c
  90.  
  91. semstst2.obj:    emstest2.c emstest.h
  92.     $(CC) $(CFLAGS) -ms -o$< emstest2.c
  93.  
  94. memstst2.obj:    emstest2.c emstest.h
  95.     $(CC) $(CFLAGS) -mm -o$< emstest2.c
  96.  
  97. cemstst2.obj:    emstest2.c emstest.h
  98.     $(CC) $(CFLAGS) -mc -o$< emstest2.c
  99.  
  100. lemstst2.obj:    emstest2.c emstest.h
  101.     $(CC) $(CFLAGS) -ml -o$< emstest2.c
  102.  
  103. hemstst2.obj:    emstest2.c emstest.h
  104.     $(CC) $(CFLAGS) -mh -o$< emstest2.c
  105.  
  106. temstst3.obj:    emstest3.c emstest.h
  107.     $(CC) $(CFLAGS) -mt -o$< emstest3.c
  108.  
  109. semstst3.obj:    emstest3.c emstest.h
  110.     $(CC) $(CFLAGS) -ms -o$< emstest3.c
  111.  
  112. memstst3.obj:    emstest3.c emstest.h
  113.     $(CC) $(CFLAGS) -mm -o$< emstest3.c
  114.  
  115. cemstst3.obj:    emstest3.c emstest.h
  116.     $(CC) $(CFLAGS) -mc -o$< emstest3.c
  117.  
  118. lemstst3.obj:    emstest3.c emstest.h
  119.     $(CC) $(CFLAGS) -ml -o$< emstest3.c
  120.  
  121. hemstst3.obj:    emstest3.c emstest.h
  122.     $(CC) $(CFLAGS) -mh -o$< emstest3.c
  123.  
  124.  
  125. emstesta:    emstesta.obj stack.obj emslibs.lib
  126.     $(LINK) $(LF) c0t emstesta stack, emstesta, , cs emslibs
  127.  
  128. emstestb:    emstestb.obj temstst2.obj stack.obj emslibs.lib
  129.     $(LINK) $(LF) c0t emstestb temstst2 stack, emstestb, , cs emslibs
  130.  
  131. emstestc:    emstestc.obj temstst3.obj stack.obj emslibs.lib
  132.     $(LINK) $(LF) c0t emstestc temstst3 stack, emstestc, , cs emslibs
  133.  
  134. semstest:    semstest.obj semstst2.obj semstst3.obj emslibs.lib
  135.     $(LINK) $(LF) c0s semstest semstst2 semstst3, semstest, , cs emslibs
  136.  
  137. memstest:    memstest.obj memstst2.obj memstst3.obj emslibm.lib
  138.     $(LINK) $(LF) c0m memstest memstst2 memstst3, memstest, , cm emslibm
  139.  
  140. cemstest:    cemstest.obj cemstst2.obj cemstst3.obj emslibc.lib
  141.     $(LINK) $(LF) c0c cemstest cemstst2 cemstst3, cemstest, , cc emslibc
  142.  
  143. lemstest:    lemstest.obj lemstst2.obj lemstst3.obj emslibl.lib
  144.     $(LINK) $(LF) c0l lemstest lemstst2 lemstst3, lemstest, , cl emslibl
  145.  
  146. hemstest:    hemstest.obj hemstst2.obj hemstst3.obj emslibh.lib
  147.     $(LINK) $(LF) c0h hemstest hemstst2 hemstst3, hemstest, , ch emslibh
  148.  
  149.